package cn.zl.web.dto.device;

import cn.yunbamboos.rest.service.dto.Data;
import cn.yunbamboos.rest.service.dto.out.GenericOutDTO;
import cn.zl.GB28181.core.SyncStatus;

public class SyncStatusDeviceOutDTO extends GenericOutDTO {

    private final SyncStatus status;

    public SyncStatusDeviceOutDTO(SyncStatus status) {
        this.status = status;
    }

    @Override
    public void encode(Data data) {
        super.encode(data);
        data.set("status", status.encode());
    }

}
